package com.sxkf.template.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 轮播图表
 */
@ApiModel(description = "轮播图表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_banner")
public class Banner {
    /**
     * 轮播图pk
     */
    @TableId(value = "id")
    @ApiModelProperty(value = "轮播图pk",hidden = true)
    private String id;

    /**
     * 轮播图名字
     */
    @TableField(value = "name")
    @ApiModelProperty(value = "轮播图名字")
    private String name;

    @TableField("url")
    private String url;

    /**
     * 轮播图片地址
     */
    @TableField(value = "picture")
    @ApiModelProperty(value = "轮播图片地址")
    private String picture;

    /**
     * 排序
     */
    @TableField(value = "sort")
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     * 图片位置
     */
    @TableField(value = " ")
    @ApiModelProperty(value = "图片位置")
    private String site;
    
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间",hidden = true)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间",hidden = true)
    private Date updateTime;
}
